package com.homework07.work01;

/*
在main方法中创建该类的对象并给属性赋值(演示两种方法:setter方法和构造方法)
*/
public class test {
    public static void main(String[] args) {
        Manager manager = new Manager();
        manager.setName("代安康");
        manager.setId(123);
        manager.setSalary(15000.0);
        manager.setBouns(6000);
        manager.work();

        Coder coder = new Coder("李文建", 135, 10000);
        coder.work();

    }
}
